Fix coordinates reported from gdk_window_get_pointer (had sign reversed)
authorAlexander Larsson <alexl@redhat.com>
Thu, 4 Dec 2008 14:46:09 +0000 (15:46 +0100)
committerAlexander Larsson <alex@localhost.localdomain>
Thu, 2 Apr 2009 08:14:06 +0000 (10:14 +0200)
gdk/gdkdisplay.c

index 40efc153d1391fd58a5b817e076634fbb9b53caa..bc515b540bc82ae028645a7790d775d6e7d9db77 100644 (file)
@@ -531,8 +531,8 @@ gdk_window_real_window_get_pointer (GdkDisplay       *display,
                                                       &tmpx, &tmpy,
                                                       mask);
   /* We got the coords on the impl, conver to the window */
-  tmpx += private->abs_x;
-  tmpy += private->abs_y;
+  tmpx -= private->abs_x;
+  tmpy -= private->abs_y;
   
   if (x)
     *x = tmpx;